import java.awt.*;


public class Block extends Rectangle{
	
	public int groundID; //define what this block is... enemy, sand block etc.
	public int airID;
	public Block(int x, int y, int width, int height, int groundID, int airID)
	{
		setBounds(x,y,width,height);
		
		this.groundID = groundID;
		this.airID = airID;
		
		
		
		
		
	}
	
	public void draw(Graphics g)
	{
		
		g.drawImage(Window.tileset_ground[groundID], x,y,width,height,null); //draw the images
		
		g.drawRect(x,y,width, height);
		if(airID != Value.airAir)
		{
			//draw item
			g.drawImage(Window.tileset_ground[airID], x,y,width,height,null); //draw the images
		}
		
	}
	
	
	

}
